<template>
	<view class="sureorder" :class="{ hiddenY : CouponView }">

		<view class="sureorder-top">
			<view class="sureorder-top-part">
				<view class="sureorder-top-part-connet" @click="getAddress()">
					<view class="sureorder-top-part-connet-left">
						<image src="../static/sureorder/address.png" mode="widthFix" style="width: 40rpx;"></image>
					</view>
					<view class="sureorder-top-part-connet-right" v-show="!address">
						<view class="sureorder-top-part-connet-right-connet">
							<view class="sureorder-top-part-connet-right-connet-top">
								<text style="color: red;">*</text>
								<text>无</text>
							</view>
							<view class="sureorder-top-part-connet-right-connet-bottom">
								<text>请完善地址</text>
							</view>
						</view>
						<view class="sureorder-top-part-connet-right-icon">
							<image src="../static/suggest/right.png" mode="widthFix" style="width: 40rpx;"></image>
						</view>
					</view>
					<view class="sureorder-top-part-connet-right2" style="justify-content: center;" v-show="address">
						<view class="sureorder-top-part-connet-right2-title">
							<text>收货人：{{address.userName}}</text>
							<text>{{address.telNumber}}</text>
						</view>
						<view class="sureorder-top-part-connet-right2-connet">
							<text>地址:{{address.provinceName + address.cityName + address.countyName + address.detailInfo}}</text>
						</view>
					</view>
					<view class="sureorder-top-part-connet-right-icon" v-show="address">
						<image src="../static/suggest/right.png" mode="widthFix" style="width: 40rpx; height: 40rpx;">
						</image>
					</view>
				</view>

			</view>
		</view>
		<view class="sureorder-good">
			<view class="sureorder-good-part">
				<view class="sureorder-good-part-left">
					<image :src="imgurl + orderdetail.goods_img" mode="widthFix" style="width: 220rpx; height: 220rpx;">
					</image>
				</view>
				<view class="sureorder-good-part-right">
					<view class="sureorder-good-part-right-title">
						<text>{{orderdetail.goods_name}}</text>
					</view>
					<view class="sureorder-good-part-right-connet">
						<p style="width: 100%;">套餐：{{orderdetail.setmeal_title}}</p>
						<p style="width: 100%;">租期：{{orderdetail.lease_time}}</p>
						<p style="width: 100%;">数量：{{orderdetail.amount}}</p>
					</view>
				</view>
			</view>
		</view>
		<view class="sureorder-type">
			<view class="sureorder-type-part">
				<view class="sureorder-type-part-connet" style="border-bottom: solid #f7f7f7 4rpx;">
					<text style="margin-left: 20rpx;">付款方式</text>
					<text style="margin-right: 20rpx; color: #7f7f7f;" v-show="orderdetail.pay_type == 1">智能合同代扣</text>
					<text style="margin-right: 20rpx; color: #7f7f7f;" v-show="orderdetail.pay_type == 2">支付宝预授权</text>
					<text style="margin-right: 20rpx; color: #7f7f7f;" v-show="orderdetail.pay_type == 3">花呗分期支付</text>
				</view>
				<view class="sureorder-type-part-connet">
					<text style="margin-left: 20rpx;">租赁方式</text>
					<text style="margin-right: 20rpx; color: #7f7f7f;">{{orderdetail.pact_type}}</text>
				</view>
			</view>
		</view>
		<view class="sureorder-value">
			<view class="sureorder-value-part">
				<view class="sureorder-value-part-title">
					<text style="margin-left: 20rpx;">首期实付金额</text>
					<text style="color: red;margin-right: 20rpx;">￥{{orderdetail.first_rent}}</text>
				</view>
				<view class="sureorder-value-part-connet">
					<view class="sureorder-value-part-connet-part">
						<view class="sureorder-value-part-connet-part-connet">
							<view class="sureorder-value-part-connet-part-list">
								<text>总租金</text>
								<text>￥{{orderdetail.total_rent}}(共{{orderdetail.total_num}}期)</text>
							</view>
							<view class="sureorder-value-part-connet-part-list">
								<text>首期租金</text>
								<text>￥{{orderdetail.first_rent}}(共{{orderdetail.last_term}}期)</text>
							</view>
							<view class="sureorder-value-part-connet-part-list">
								<text>剩余租金</text>
								<text>￥{{orderdetail.last_rent}}(共{{orderdetail.total_num}}期)</text>
							</view>
							<view class="sureorder-value-part-connet-part-list">
								<text style="color: red; font-size: 28rpx;">首月租金5折</text>
								<text style="color: red; font-size: 28rpx;" @click="CouponView = true ">领券></text>
							</view>
							<view class="sureorder-value-part-connet-part-list">
								<text style="color: red; font-size: 28rpx;">优惠抵扣</text>
								<text
									style="color: red; font-size: 28rpx;">￥{{orderdetail.pay_code?orderdetail.pay_code:0}}</text>
							</view>
						</view>
					</view>
				</view>
				<view class="sureorder-value-part-buttom" @click="Totenancy()">
					<view class="sureorder-value-part-buttom-left">
						<text style="font-size: 32rpx; margin-left: 20rpx;">租期详情</text>
						<text style="font-size: 24rpx; color: orange;margin-left: 20rpx;">自定义租期，每期租金金额不同</text>
					</view>
					<view class="sureorder-value-part-buttom-right">
						<image src="../static/suggest/more.png"
							style="width: 20rpx; height: 20rpx; margin-right: 20rpx;"></image>
					</view>
				</view>
			</view>
		</view>
		<view class="sureorder-valuetype">
			<view class="sureorder-valuetype-part">
				<view class="sureorder-valuetype-part-list" style="border-bottom:#f7f7f7 solid 4rpx;">
					<view class="sureorder-valuetype-part-list-left">
						<text style="margin-left: 20rpx;">商品押金</text>
						<text style="margin-left: 20rpx;color: orange;font-size: 24rpx;">信用好，最高可全免</text>
					</view>
					<view class="sureorder-valuetype-part-list-right">
						<text style="margin-right: 20rpx;">￥{{orderdetail.foregift}}</text>
					</view>
				</view>
				<view class="sureorder-valuetype-part-list" style="border-bottom:#f7f7f7 solid 4rpx;">
					<view class="sureorder-valuetype-part-list-left">
						<text style="margin-left: 20rpx;">预估到期买断尾款</text>
						<image src="../static/sureorder/bangzhu.png"
							style="width: 32rpx; height: 32rpx; margin-left: 20rpx; margin-top: 10rpx;"
							@click="showmodel()"></image>
					</view>
					<view class="sureorder-valuetype-part-list-right">
						<text style="margin-right: 20rpx;">￥{{orderdetail.buyout_price}}</text>
					</view>
				</view>
				<view class="sureorder-valuetype-part-list">
					<view class="sureorder-valuetype-part-list-connet">
						<text style="margin-left: 20rpx;">配送方式</text>
						<text style="margin-right: 20rpx; color: #7f7f7f;">{{orderdetail.convey_type}}</text>
					</view>

				</view>
			</view>
		</view>
		<!-- 		<view class="sureorder-realname">
			<view class="sureorder-realname-part">
				<text style="margin-left: 20rpx;">实名认证</text>
				<text style="color: red; font-weight: bold; margin-right: 20rpx;">未认证，请先完成实名认证></text>
			</view>
		</view> -->
		<view class="sureorder-input">
			<view class="sureorder-input-part">
				<view class="sureorder-input-part-left">
					<text style="margin-left: 20rpx;">邮箱</text>
				</view>
				<view class="sureorder-input-part-right" style="width: calc(80% - 140rpx);">
					<input type="text" style="width: 100%; height: 80%;" placeholder="请输入你的邮箱" @input="email">
				</view>
				<view class="sureorder-input-part-right-error">
					<text v-show="!regEmail">邮箱不合法</text>
				</view>
			</view>
		</view>
		<view class="sureorder-input" style="margin-top: 20rpx;">
			<view class="sureorder-input-part">
				<view class="sureorder-input-part-left">
					<text style="margin-left: 20rpx;">备注</text>
				</view>
				<view class="sureorder-input-part-right">
					<input type="text" style="width: 100%; height: 80%;" placeholder="请输入你对本次订单的交易说明" @input="email">
				</view>
			</view>
		</view>
		<view class="empty"></view>
		<view class="sureorder-tabar">
			<view class="sureorder-tabar-top">
				<radio :checked="checkedvalue" @click="checked" color="red" />
				<text style="font-size: 28rpx;">我同意调用数字证书签署</text>
				<text style="font-size: 28rpx;color: skyblue;" @click="Toagreement()">"租赁服务协议及相关"</text>
			</view>
			<view class="sureorder-tabar-bottom">
				<view class="sureorder-tabar-bottom-part">
					<view class="sureorder-tabar-bottom-part-left">
						<text style="font-size: 24rpx;">共{{orderdetail.amount}}件,首期实付：</text>
						<text style="font-size: 36rpx; color: red;">￥{{orderdetail.pay_rent}}</text>
					</view>
					<view class="sureorder-tabar-bottom-part-right">
						<view class="sureorder-tabar-bottom-part-right-button" :class="{GoButton : checkedvalue}"
							@click="Buy()">
							<text>去免租</text>
						</view>
					</view>
				</view>

			</view>
		</view>
		<MyModel v-show="mymodel" :mymodel="mymodel" @mymodelEvent="hidemodel">
			<template #title>
				买断尾款
			</template>
			<template #list1>
				买断尾款为订单道歉时买断商品所需付的金额
			</template>
			<template #list2>
				买断尾款 = 买断金 - 实付租金，如订单有冻结押金，冻结押金可抵扣买断尾款
			</template>
			<template #list3>
				优惠金额仅限于抵扣押金，不能用于抵扣买断押金价格
			</template>
		</MyModel>
		<Phone v-show="phoneview" :phoneview="userInfo" @phone="hidephone"></Phone>
		<!-- 		copy goods -->
		<view class="couponview" v-show="CouponView">
			<view class="couponview-hidden" @click="hideSOCouponView()"></view>
			<view class="couponview-part" :class=" {CouponViewPart :  hideCouponView} ">
				<view class="couponview-part-top">
					<view class="couponview-part-top-connet">
						<text>优惠价领取</text>
						<image src="../static/suggest/close.png" style="width: 56rpx; height: 56rpx;"
							@click="hideSOCouponView()"></image>
					</view>
				</view>
				<view class="goods-coupon-part">
					<!-- 		copy usecoupon页  v-for="(item,index) in [1,2,3,4]" :key="index"-->
					<view class="usecoupon-coupon" v-for="(item,index) in [1,2,3,4,5,6]" :key="index">
						<view class="receiving-part">
							<view class="receiving-part-left">
								<view class="receiving-part-left-text">
									<text style="font-size: 36rpx; font-weight: 600; color: white;">首月租金5折</text>
								</view>
							</view>
							<view class="receiving-part-right">
								<view class="receiving-part-right-top">
									<view class="receiving-part-right-top-left">
										<view class="receiving-part-right-top-left-connet">
											<text style="font-size: 24rpx; color: white;">固定折扣卷</text>
										</view>
									</view>
									<text style="font-size: 24rpx;">可用于全部商城</text>
								</view>
								<view class="receiving-part-right-bottom">
									<text
										style="margin-left: 10rpx; font-size: 24rpx; line-height: 80rpx; display: block;">可参与首月租金抵扣</text>
									<text
										style="margin-left: 10rpx; font-size: 24rpx; line-height: 80rpx; display: block;">领取后1天有效</text>
									<view class="receiving-buttom">
										<text>去使用</text>
									</view>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 		copy goods -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				CouponView: false,
				hideCouponView: false,
				mymodel: false,
				checkedvalue: false,
				address: '',
				regEmail: true,
				userInfo: '',
				orderdetail: '',
				imgurl: this.$imgURL,/* 这里 */
				order_data: '',
				phoneview: false,
			}
		},
		onLoad(e) {
			console.log(e)
			this.order_data = e
			uni.getStorage({
				key: 'userinfo',
				success: (res) => {
					this.userInfo = res
					console.log(this.userInfo)
					uni.request({
						url: this.$apiUrl + 'Order/confirmOrder',
						method: 'POST',
						header: {
							token: this.userInfo.data.token
						},
						data: e,
						complete: (res) => {
							this.orderdetail = res.data.data
							console.log(this.orderdetail)
							if (res.data.status != 200) {
								uni.showModal({
									title: '提示',
									content: '您还未授权登录，将为您跳转至用户页面，请点击头像登录',
									showCancel: false,
									success(event) {
										if (event.confirm) {
											uni.switchTab({
												url: '/pages/user/user'
											})
										}
									}
								})
							}
						}

					})
				},
				fail: () => {
					uni.showModal({
						title: '提示',
						content: '您还未授权登录，将为您跳转至用户页面，请点击头像登录',
						showCancel: false,
						success(event) {
							if (event.confirm) {
								uni.switchTab({
									url: '/pages/user/user'
								})
							}
						}
					})
				}
			})

		},
		methods: {
			hidephone(e) {
				console.log(e)
				this.phoneview = false
			},
			Buy() {
				if (!this.address) {
					return uni.showToast({
						icon: 'none',
						title: '请选择地址',
						duration: 3000
					})
				}
				if ((!this.regEmail) | (!this.emailvalue)) {
					return uni.showToast({
						icon: 'none',
						title: '请正确填写邮箱',
						duration: 3000
					})
				}
				if (!this.checkedvalue) {
					return uni.showToast({
						icon: 'none',
						title: '请同意服务条款',
						duration: 3000
					})
				}
				uni.showLoading({
					mask: true,
					title: '加载中'
				})
				uni.request({
					url: this.$apiUrl + 'Order/confirmOrder',
					method: 'POST',
					header: {
						token: this.userInfo.data.token
					},
					data: this.order_data,
					complete: (res) => {
						// this.orderdetail = res.data.data
						// console.log(this.orderdetail)
						if (!res.data.data.mobile) {
							return this.phoneview = true
							uni.hideLoading()
						}
					}

				})
				setTimeout(() => {
					uni.hideLoading()
				}, 1000)
			},
			getAddress() {
				uni.chooseAddress({
					success: (res) => {
						console.log(res)
						this.address = res
					}
				})
			},
			Totenancy() {
				this.order_data.img = this.orderdetail.goods_img
				uni.navigateTo({
					url: '/pagesA/tenancy/tenancy?data=' + JSON.stringify(this.order_data)
				})
			},
			Toagreement() {
				uni.navigateTo({
					url: '/pagesA/agreement/agreement'
				})
			},
			checked() {
				this.checkedvalue = !this.checkedvalue
			},
			email(e) {
				let regEmail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/
				console.log(regEmail.test(e.detail.value))
				this.regEmail = regEmail.test(e.detail.value)
				this.emailvalue = e.detail.value
			},
			hidemodel(e) {
				this.mymodel = false
			},
			hideSOCouponView() {
				this.hideCouponView = true
				setTimeout(() => {
					this.CouponView = false
					this.hideCouponView = false
				}, 200)
			},
			showSOCouponView() {
				this.hideCouponView = false
				this.CouponView = false

			},
			showmodel() {
				this.mymodel = true
			}
		}
	}
</script>

<style>
	page {
		width: 100%;
		height: 100%;
		background-color: #f7f7f7;
	}

	.sureorder-top-part-connet-right2 {
		width: calc(100% - 100rpx);
		height: 100%;
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.sureorder-top-part-connet-right2-title {
		width: 90%;
		height: 40%;
		font-size: 28rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.sureorder-top-part-connet-right2-connet {
		width: 90%;
		height: 60%;
		font-size: 28rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.hiddenY {
		overflow-y: hidden;
	}

	.sureorder {
		width: 100%;
		height: 100%;
	}

	.sureorder-top {
		width: 100%;
		height: 200rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-top-part {
		width: 90%;
		height: 80%;
		border-radius: 12rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: white;

	}

	.sureorder-top-part-connet {
		width: 100%;
		height: 80%;
		display: flex;
		justify-content: center;

	}

	.sureorder-top-part-connet-left {
		width: 100rpx;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-top-part-connet-right {
		width: calc(100% - 100rpx);
		height: 100%;
		display: flex;
		justify-content: center;
	}

	.sureorder-top-part-connet-right-icon {
		width: 100rpx;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-top-part-connet-right-connet {
		width: calc(100% - 100rpx);
		height: 100%;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;

	}

	.sureorder-top-part-connet-right-connet-top {
		width: 100%;
		height: 50%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 32rpx;
	}

	.sureorder-top-part-connet-right-connet-bottom {
		width: 100%;
		height: 50%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 32rpx;
		color: #7f7f7f;
	}

	.sureorder-good {
		width: 100%;
		height: 280rpx;
		display: flex;
		justify-content: center;
		align-items: flex-start;
	}

	.sureorder-good-part {
		width: 90%;
		height: 90%;
		background-color: white;
		border-radius: 12rpx;
		display: flex;
		justify-content: center;

	}

	.sureorder-good-part-left {
		width: 200rpx;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-good-part-right {
		width: calc(100% - 200rpx);
		height: 100%;
		display: flex;
		justify-content: center;
		/* 		align-items: center; */
		flex-wrap: wrap;
	}

	.sureorder-good-part-right-title {
		height: 80rpx;
		width: 90%;
		display: flex;
		justify-content: flex-start;
		align-items: flex-end;
		;
		font-size: 36rpx;
	}

	.sureorder-good-part-right-connet {
		height: calc(100% - 120rpx);
		width: 90%;
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
		font-size: 24rpx;
		line-height: 0.5;
		color: #7f7f7f;
	}

	.sureorder-type {
		width: 100%;
		height: 180rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-type-part {
		width: 90%;
		height: 100%;
		border-radius: 12rpx;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		background-color: white;
	}

	.sureorder-type-part-connet {
		width: 100%;
		height: 50%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 32rpx;
	}

	.sureorder-value {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}

	.sureorder-value-part {
		width: 90%;
		height: 90%;
		background-color: white;
		margin-top: 32rpx;
		border-radius: 24rpx;
	}

	.sureorder-value-part-title {
		width: 100%;
		height: 60rpx;
		font-size: 32rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 20rpx;
		margin-bottom: 20rpx;
	}

	.sureorder-value-part-connet {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-value-part-connet-part {
		width: 96%;
		height: 92%;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		background-color: #f9f9f9;
		border-radius: 12rpx;
		padding-top: 10rpx;
		padding-bottom: 10rpx;
	}

	.sureorder-value-part-buttom {
		width: 100%;
		height: 60rpx;
		margin-bottom: 20rpx;
		margin-top: 20rpx;
		display: flex;
		justify-content: center;
	}

	.sureorder-value-part-connet-part-list {
		width: 100%;
		height: 60rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 24rpx;
	}

	.sureorder-value-part-connet-part-connet {
		width: 96%;
		height: 100%;
	}

	.sureorder-value-part-buttom-left {
		width: 80%;
		height: 100%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}

	.sureorder-value-part-buttom-right {
		width: 20%;
		height: 100%;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	.sureorder-valuetype {
		width: 100%;
		height: 270rpx;
		margin-top: 32rpx;
		display: flex;
		justify-content: center;
	}

	.sureorder-valuetype-part {
		width: 90%;
		height: 100%;
		background-color: white;
		align-items: center;
		flex-wrap: wrap;
		display: flex;
	}

	.sureorder-valuetype-part-list {
		width: 100%;
		height: 33%;
		display: flex;
		justify-content: center;
	}

	.sureorder-valuetype-part-list-left {
		width: 80%;
		height: 100%;
		font-size: 32rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}

	.sureorder-valuetype-part-list-right {
		width: 20%;
		height: 100%;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		font-size: 32rpx;
		color: #7f7f7f;
	}

	.sureorder-valuetype-part-list-connet {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 32rpx;
	}

	.sureorder-realname {
		width: 100%;
		height: 90rpx;
		margin-top: 32rpx;
		display: flex;
		justify-content: center;
	}

	.sureorder-realname-part {
		width: 90%;
		height: 100%;
		background-color: white;
		font-size: 32rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 12rpx;
	}

	.sureorder-input {
		width: 100%;
		height: 90rpx;
		margin-top: 16rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-input-part {
		width: 90%;
		height: 100%;
		display: flex;
		justify-content: flex-start;
		background-color: white;
		border-radius: 12rpx;

	}

	.sureorder-input-part-left {
		width: 140rpx;
		height: 100%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 32rpx;
	}

	.sureorder-input-part-right {
		width: calc(90% - 140rpx);
		height: 100%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 32rpx;
	}

	.empty {
		width: 100%;
		height: 200rpx;
	}

	.sureorder-tabar {
		width: 100%;
		height: 160rpx;
		background-color: white;
		border-top: #f7f7f7 solid 2rpx;
		position: fixed;
		z-index: 99;
		bottom: 0;
	}

	.sureorder-tabar-top {
		width: 100%;
		height: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sureorder-tabar-bottom {
		width: 100%;
		height: 50%;
		display: flex;
		justify-content: center;
	}

	.sureorder-tabar-bottom-part {
		width: 96%;
		height: 100%;
		display: flex;
		justify-content: center;

	}

	.sureorder-tabar-bottom-part-left {
		width: 60%;
		height: 100%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}

	.sureorder-tabar-bottom-part-right {
		width: 40%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: flex-start;
	}

	.sureorder-tabar-bottom-part-right-button {
		width: 80%;
		height: 96%;
		background-color: #7f7f7f;
		color: #f7f7f7;
		border-radius: 64rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.GoButton {
		background-color: red !important;
		color: white !important;
	}

	/* 	copy */
	.couponview {
		height: 100%;
		width: 100%;
		background-color: rgba(125, 125, 125, 0.3);
		position: fixed;
		z-index: 999;
		top: 0rpx;
	}

	.couponview-hidden {
		width: 100%;
		height: 20%;

	}

	.couponview-part {
		width: 100%;
		height: 80%;
		background-color: white;
		animation: couponview-out 0.2s;
		position: relative;
		border-radius: 32rpx 32rpx 0 0;
	}

	.CouponViewPart {
		animation: couponview-in 0.2s !important;
	}

	.couponview-part-top {
		width: 100%;
		height: 80rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.couponview-part-top-connet {
		width: 96%;
		height: 100%;
		font-size: 32rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.receiving-part {
		width: 90%;
		height: 240rpx;
		display: flex;
		justify-content: space-around;
		background-color: white;
		border-radius: 12rpx 0 0 12rpx;
		box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
	}

	.receiving-part-left {
		width: 38%;
		height: 100%;
		background-color: red;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 12rpx 0 0 12rpx;
	}

	.receiving-part-right {
		width: 60%;
		height: 100%;
	}

	.receiving-part-right-top {
		height: 33%;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: left;
	}

	.receiving-part-right-top-left {
		width: 50%;
		height: 60rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.receiving-part-right-top-left-connet {
		width: 92%;
		height: 88%;
		background-color: red;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 12rpx;
	}

	.receiving-part-right-bottom {
		width: 100%;
		height: 67%;
	}

	.receiving-buttom {
		position: relative;
		bottom: 80rpx;
		color: red;
		background-color: white;
		font-size: 32rpx;
		border: solid red 2rpx;
		left: 220rpx;
		width: 36%;
		height: 54rpx;
		border-radius: 24rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.usecoupon-coupon {
		width: 100%;
		height: 260rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #FFFFFF;
	}

	.usecoupon-coupon {
		width: 100%;
		height: 260rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #FFFFFF;
	}

	.goods-coupon-part {
		width: 100%;
		height: calc(100% - 80rpx);
		overflow: scroll;
	}

	.sureorder-input-part-right-error {
		width: 20%;
		height: 100%;
		font-size: 24rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		color: red;
		font-weight: bold;
	}

	@keyframes couponview-out {
		from {
			top: 80%;
		}

		to {
			top: 0;
		}
	}

	@keyframes couponview-in {
		from {
			top: 0;
		}

		to {
			top: 80%;
		}
	}

	/* copy */
</style>
